import Vue from 'vue';
import Router from 'vue-router';
import HomePage from '../views/index';
import CountDown from '../views/CountDown/Index';
import mini from '../views/mini/index';
import ExtractNumber from '../views/StudentNumber/Index';
import Picture from '../views/Picture/index';
import Preview from '../views/Picture/preview';
import PaperFile from '../views/PaperFile/index';
import Recognize from '../views/Recognize/index';
import onlinePPT from '../views/onlinePPT/index';
Vue.use(Router);

export default new Router({
  name: 'HomePage',
  routes: [
    {
      path: '/',
      name: 'main',
    },
    {
      path: '/HomePage',
      name: 'HomePage',
      component: HomePage,
      children: [
        {
          path: 'InnerStruct',
          name: 'InnerStruct',
          component: require('@/resource/views/InnerStruct/index').default,
        },
        {
          path: 'PolyvVideo',
          name: 'PolyvVideo',
          component: require('@/resource/views/PolyvVideo/index').default,
        },
        {
            path: 'BosVideo',
            name: 'BosVideo',
            component: require('@/resource/views/BosVideo/index').default,
          },
        {
          path: 'MultiAngle',
          name: 'MultiAngle',
          component: require('@/resource/views/MultiAngle/index').default,
        },
        {
          path: 'VirtualReality',
          name: 'VirtualReality',
          component: require('@/resource/views/VirtualReality/index').default,
        },
        {
          path: 'Rotation360',
          name: 'Rotation360',
          component: require('@/resource/views/Rotation360/index').default,
        },
        {
          path: 'ZoomIn',
          name: 'ZoomIn',
          component: require('@/resource/views/ZoomIn/index').default,
        },
        {
          path: 'HeatMap',
          name: 'HeatMap',
          component: require('@/resource/views/HeatMap/index').default,
        },
        {
          path: 'TimeLapse',
          name: 'TimeLapse',
          component: require('@/resource/views/TimeLapse/index').default,
        },
        {
          path: 'Partial',
          name: 'Partial',
          component: require('@/resource/views/Partial/index').default,
        },
        {
          path: 'VirtualLab',
          name: 'VirtualLab',
          component: require('@/resource/views/VirtualLab/index').default,
        },
        {
            path: 'VrHotspot',
            name: 'VrHotspot',
            component: require('@/resource/views/VrHotspot/index').default,
        },
        {
            path: 'StepExplore',
            name: 'StepExplore',
            component: require('@/resource/views/StepExplore/index').default,
        },
        {
          path: 'MindMap',
          name: 'MindMap',
          component: require('@/resource/views/mindMap/index').default,
        }, {
          path: '/PaperFile',
          name: 'PaperFile',
          component: PaperFile,
        }
      ],
    },
    {
      path: '/countDown',
      name: 'countDown',
      component: CountDown,
    },
    {
      path: '/mini',
      name: 'mini',
      component: mini,
    },
    {
      path: '/extractNumber',
      name: 'extractNumber',
      component: ExtractNumber,
    },
    {
      path: '/Picture',
      name: 'Picture',
      component: Picture,
    },
    {
      path: '/recognize',
      name: 'recognize',
      component: Recognize,
    }, {
      path: 'Preview',
      name: 'Preview',
      component: Preview
    },
    {
      path: '/Quiz',
      name: 'Quiz',
      // component:()=>import('../views/Quiz/index')
      component: require('@/resource/views/Quiz/index').default,
      meta: {
        keepAlive: true,
      },
    },
    {
        path: '/onlinePPT',
        name: 'onlinePPT',
        component: onlinePPT,
    },
    {
      path: '/championship',
      name: 'championship',
      // component:()=>import('../views/Quiz/index')
      component: require('@/resource/views/Quiz/championship').default,
    },
    {
      path: '/Collection',
      name: 'Collection',
      // component:()=>import('../views/Quiz/index')
      component: require('@/resource/views/Collection/Index').default,
      children: [
        {
          path: 'arrange',
          name: 'arrange',
          component: require('@/resource/views/Collection/Arrange').default,
        },
        {
          path: 'classify',
          name: 'classify',
          component: require('@/resource/views/Collection/Classify').default,
        },
        {
          path: 'classify-img',
          name: 'classify-img',
          component: require('@/resource/views/Collection/HighClassify').default,
        },
      ],
    },
    {
      path: '/charts',
      name: 'charts',
      component: require('@/resource/views/Charts/index').default,
      redirect: '/charts/chartsHome',
      children: [
        {
          path: 'chartsHome',
          name: 'ChartsHome',
          component: require('../views/Charts/components/home.vue').default,
        },
        {
          path: 'table',
          name: 'Table',
          component: require('../views/Charts/components/MyTable.vue').default
        },
        {
          path: 'chartsInstance',
          name: 'ChartsInstance',
          component: require('../views/Charts/components/MyCharts.vue').default
        },
      ]
    },
    {
      path: '/tProgress',
      name: 'tProgress',
      component: require('../views/TeachingProgress/index.vue').default
    }
  ],
});
